
$(TARGET_BIN): $(TARGET_ELF)
	$(Q)$(OBJCOPY) $^ $@ -Obinary
	@echo ----- $@ updated

$(TARGET_HEX): $(TARGET_ELF)
	$(Q)$(OBJCOPY) $^ $@ -Oihex
	@echo ----- $@ updated

$(TARGET_ELF): $(COMP_ARCHIVES) $(USER_ARCHIVES) $(LD_FILE)
	$(Q)$(LD) -Wl,--whole-archive $(COMP_ARCHIVES) $(USER_ARCHIVES) -Wl,--no-whole-archive -o $@ $(LDFLAGS)
	@echo ----- $@ updated
